import json
from config import BASE_DIR


def read_data(filename):
    with open(filename, 'r', encoding='utf8') as f:
        json_data = json.load(f)
        login_list = []
        for data in json_data:
            tem = tuple(data.values())
            login_list.append(tem)

        return login_list


if __name__=="__main__":
    filename = BASE_DIR+'/data/login.json'
    print(read_data(filename))